package com.team.engine.user.dao;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.team.engine.basedao.BaseEntity;

/**
 * 用户组，表实体
 * @author MengLH
 * @data 2010-8-4
 */
@Entity
@Table(name="user_group")
public class UserGroup extends BaseEntity {

	/**
	 * 用户组Id
	 */
	@Id
	@Column(name="usergroup_id", unique=true)
	private int usergroupId;
	
	/**
	 * 名称
	 */
	@Column(name="name_nav")
	private String nameNav;
	
	/**
	 * 说明
	 */
	@Column(name="explain_n")
	private String explainN;
	
	/**
	 * 父用户组Id
	 */
	@Column(name="parent_usergroup_id")
	private int parentUsergroupId;
	
	public String getNameNav() {
		return nameNav;
	}

	public void setNameNav(String nameNav) {
		this.nameNav = nameNav;
	}

	public String getExplainN() {
		return explainN;
	}

	public void setExplainN(String explainN) {
		this.explainN = explainN;
	}
	
	public int getUsergroupId() {
		return usergroupId;
	}

	public void setUsergroupId(int usergroupId) {
		this.usergroupId = usergroupId;
	}

	public int getParentUsergroupId() {
		return parentUsergroupId;
	}

	public void setParentUsergroupId(int parentUsergroupId) {
		this.parentUsergroupId = parentUsergroupId;
	}
}
